Repository navigation
fix: keep the preferences timezone select inside the settings modal - #10257
Conversation
The fit-width trigger grew with the selected timezone's label, so long names pushed it past its max-width wrapper and out of the modal. The button is now capped at the wrapper, widened to 288px, and the label truncates.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Description
On Profile settings, Preferences, the Timezone select ran past the right edge of the settings modal when the selected timezone had a long name (for example "UTC+05:30 Chennai, Kolkata, Mumbai, New Delhi").
The select uses a fit-width trigger inside a
max-w-64wrapper. The wrapper was capped, but the trigger button inside it wasn't, so it grew with its label to about 347px and overflowed. The button is now capped at its wrapper ([&_button]:max-w-full), and the cap is now 288px (max-w-72). Long names truncate with an ellipsis, and the select lines up with the Theme, Language and First day of the week selects.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
Checks: web
tsc --noEmit, oxfmt and oxlint on the changed file.References
🤖 Generated with Claude Code
Summary by CodeRabbit